
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'
import VueLazyload from 'vue-lazyload'
import 'normalize.css/normalize.css' // 初始化css
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/en' // lang i18n
import '@/styles/index.scss' // 全局css
import '@/icons' // icon
import '@/permission' // 权限 control
// 本地mock方法
import { mockXHR } from '../mock'
mockXHR()
Vue.use(ElementUI, { locale })
Vue.use(VueLazyload, {
  loading: require('./assets/loading.svg')
})
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
